package com.mvw.tetrominoes.event {
	
	import flash.events.Event;
	
	/**
	 * An abstract representation of a "Preview Update" event.
	 */
	public class PreviewUpdate extends Event {
		
		public static const PREVIEW_UPDATE:String = "urn:tetrominoes:event:preview";
		
		private var _preview:Array;
		
		/**
		 * Instantiates the superclass Event.
		 * 
		 @param type A unique String identifying the event.
		 */
		public function PreviewUpdate(type:String, preview:Array):void {
			_preview = preview;
			super(type);	
		}
		
		/**
		 * Change in preview Clusters.
		 * 
		 * @return Returns an Array of Clusters.
		 */
		public function get preview():Array {
			return _preview;
		}
	}
}